<?php 
/**
 * @version		2.0.1 | $Id: form.php 93 2009-08-28 10:56:02Z mwi.nor $
 */

// no direct access
defined('_JEXEC') or die('Restricted access');
	JToolBarHelper::media_manager( '/' );
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
    <fieldset class="adminform">
        <legend><?php echo JText::_( 'MD_EVENT_DETAILS' ); ?></legend>
        <table class="admintable">
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventName">
                <?php echo JText::_( 'MD_EVENT_NAME' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventName" id="EventName" size="32" value="<?php echo $this->event->EventName;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventPlayers">
                <?php echo JText::_( 'MD_EVENT_PLAYERS' ); ?>
                </label>
            </td>
            <td>
                <?php echo $this->playerlist ?>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventTeams">
                <?php echo JText::_( 'MD_EVENT_TEAMS' ); ?>
                </label>
            </td>
            <td>
                <?php echo $this->teamlist ?>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventPointsWin">
                <?php echo JText::_( 'MD_EVENT_POINTS_WIN' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventPointsWin" id="EventPointsWin" size="32" value="<?php echo $this->event->EventPointsWin;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventPointsDraw">
                <?php echo JText::_( 'MD_EVENT_POINTS_DRAW' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventPointsDraw" id="EventPointsDraw" size="32" value="<?php echo $this->event->EventPointsDraw;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventPointsLose">
                <?php echo JText::_( 'MD_EVENT_POINTS_LOSE' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventPointsLose" id="EventPointsLose" size="32" value="<?php echo $this->event->EventPointsLose;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventLine">
                <?php echo JText::_( 'MD_EVENT_LINE' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventLine" id="EventLine" size="32" value="<?php echo $this->event->EventLine;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventLogo">
                <?php echo JText::_( 'MD_EVENT_LOGO' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventLogo" id="EventLogo" size="64" value="<?php echo $this->event->EventLogo;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventMatchType">
                <?php echo JText::_( 'MD_EVENT_MATCHTYPE' ); ?>
                </label>
            </td>
            <td>
                <input class="text_area" type="text" name="EventMatchType" id="EventMatchType" size="32" value="<?php echo $this->event->EventMatchType;?>" />
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventRemarks">
                <?php echo JText::_( 'MD_EVENT_REMARKS' ); ?>
                </label>
            </td>
            <td>
            <?php
            	$editor_rem =& JFactory::getEditor();
            	echo $editor_rem->display('EventRemarks', $this->event->EventRemarks, '550', '200', '60', '20', false);
             ?>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventTableLegend">
                <?php echo JText::_( 'MD_EVENT_TABLE_LEGEND' ); ?>
                </label>
            </td>
            <td>
            <?php
            	$editor_leg =& JFactory::getEditor();
            	echo $editor_leg->display('EventTableLegend', $this->event->EventTableLegend, '550', '200', '60', '20', false);
             ?>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventUseDraws">
                <?php echo JText::_( 'MD_EVENT_USE_DRAWS' ); ?>
                </label>
            </td>
            <td>
            	<input type="checkbox" name="EventUseDraws" value="1" <?php echo ($this->event->EventUseDraws == 1) ? 'checked' : '';?>>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventUsePlayoffs">
                <?php echo JText::_( 'MD_EVENT_USE_PLAYOFFS' ); ?>
                </label>
            </td>
            <td>
            	<input type="checkbox" name="EventUsePlayoffs" value="1" <?php echo ($this->event->EventUsePlayoffs == 1) ? 'checked' : '';?>>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventUseSets">
                <?php echo JText::_( 'MD_EVENT_USE_SETS' ); ?>
                </label>
            </td>
            <td>
            	<input type="checkbox" name="EventUseSets" value="1" <?php echo ($this->event->EventUseSets == 1) ? 'checked' : '';?>>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventUseTeams">
                <?php echo JText::_( 'MD_EVENT_USE_TEAMS' ); ?>
                </label>
            </td>
            <td>
            	<input type="checkbox" name="EventUseTeams" value="1" <?php echo ($this->event->EventUseTeams == 1) ? 'checked' : '';?>>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventUseVenues">
                <?php echo JText::_( 'MD_EVENT_USE_VENUES' ); ?>
                </label>
            </td>
            <td>
            	<input type="checkbox" name="EventUseVenues" value="1" <?php echo ($this->event->EventUseVenues == 1) ? 'checked' : '';?>>
            </td>
		</tr>
        <tr>
            <td width="100" align="right" class="key">
                <label for="EventUseXStats">
                <?php echo JText::_( 'MD_EVENT_USE_XSTATS' ); ?>
                </label>
            </td>
            <td>
            	<input type="checkbox" name="EventUseXStats" value="1" <?php echo ($this->event->EventUseXStats == 1) ? 'checked' : '';?>>
            </td>
		</tr>
        </table>
    </fieldset>
</div>

<div class="clr"></div>

<input type="hidden" name="option" value="com_matchdart" />
<input type="hidden" name="EventID" value="<?php echo $this->event->EventID; ?>" />
<input type="hidden" name="EventDefault" value="<?php echo $this->event->EventDefault; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="events" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>